import { defHttp } from '@/utils/http/axios'

enum Api {
  queryAllUniversityDetail="/recruitProcess/queryAllUniversityDetail",
  updateUniversityTarget="/recruitProcess/updateUniversityTarget",
  selectResumesLogList="/config/selectResumesLogList",
  selectCommonConfigDetail="/config/selectCommonConfigDetail",
  selectUniversityDetail="/config/selectUniversityDetail"
}

/**
 * 获取高校名单
 * @param data
 */
export function selectUniversityDetail(params) {
  return defHttp.get({ url: Api.selectUniversityDetail, params })
}

/**
 * 根据类型获取配置项
 * @param data
 */
export function selectCommonConfigDetail(params) {
  return defHttp.get({ url: Api.selectCommonConfigDetail, params })
}

/**
 * 获取修改记录
 * @param data
 */
export function selectResumesLogList(params) {
  return defHttp.get({ url: Api.selectResumesLogList, params })
}

/**
 * 查看高校数据-查看所有高校的明细
 * @param data
 */
export function queryAllUniversityDetail(data) {
  return defHttp.post({ url: Api.queryAllUniversityDetail, data })
}

/**
 * 编辑高校目标
 * @param data
 */
export function updateUniversityTarget(data) {
  return defHttp.post({ url: Api.updateUniversityTarget, data })
}
